<header>
  <div id="mnav">
    <div class="logo"><a href="/">{{site.configs.siteName}}</a></div>
    <h2 id="mnavh"><span class="navicon"></span></h2>
    <ul id="starlist">
      <li><a href="/">网站首页</a></li>
      {% for cate in navigation %}
      {% if cate.parentId == '0' %}
      {% if cateInfo._id == cate._id %}
      {% set navClass = 'active'%}
      {% else %}
      {% set navClass = ''%}
      {% endif %}
      <li class="{{navClass}}"><a href="{{cate.url}}">{{cate.name}}</a></li>
      {% endif %}
      {% endfor %}
    </ul>
  </div>
  <script>
    window.onload = function () {
      var oH2 = document.getElementById("mnavh");
      var oUl = document.getElementById("starlist");
      oH2.onclick = function () {
        var style = oUl.style;
        style.display = style.display == "block" ? "none" : "block";
        oH2.className = style.display == "block" ? "open" : ""
      }
    }
  </script>
</header>
<div class="line46"></div>